package com.vlong.town.entity.base;

/**
 * zTree数据实体类
 * @author Assassin
 */
public class TreeData {
	
	// Fields
	
	private String id;// 节点Id
	private String pId;// 父节点Id
	private String name;// 节点名称
	private boolean checked;// 是否选中
	private boolean open;// 是否展开
	
	// Empty Constructor
	public TreeData() {
		super();
	}
	
	// Full Constructor
	public TreeData(String id, String pId, String name, boolean checked,
			boolean open) {
		super();
		this.id = id;
		this.pId = pId;
		this.name = name;
		this.checked = checked;
		this.open = open;
	}
	
	// Property accessors
	
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getpId() {
		return pId;
	}

	public void setpId(String pId) {
		this.pId = pId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public boolean isChecked() {
		return checked;
	}

	public void setChecked(boolean checked) {
		this.checked = checked;
	}

	public boolean isOpen() {
		return open;
	}

	public void setOpen(boolean open) {
		this.open = open;
	}
	
}